﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<StackBookMvc.Models.ConnectViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	StackBook
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        StackBook helps you let your Online Community friends know what you're doing on Stack Overflow.
    </p>
    <div id="login-facebook">
        <% if (Model.mySession.IsConnected())
           { %>
           <% if (Model.StackOverflowUser == null)
              { %>
              <% Html.RenderPartial("UserSearch"); %>
           <% }
              else
              { %>
              <% Html.RenderPartial("UserDetails"); %>
           <% } %>
        <% }
           else
           {%>
            <% Html.RenderPartial("UserConnect-Facebook"); %>
        <%} %>
    </div>
    <div id="or">&nbsp;</div>
    <div id="login-twitter">
    <% Html.RenderPartial("UserConnect-Twitter"); %>
    </div>
</asp:Content>
